package dongshi.daddy.service;

import dongshi.daddy.pojo.JpaUser;
import dongshi.daddy.repository.JpaUserRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class JpaUserServiceImpl implements JpaUserService {
    @Resource
    private JpaUserRepository jpaUserRepository;

    @Override
    public JpaUser insertUser(JpaUser user) {
        return jpaUserRepository.save(user);
    }
}
